Re: How can I configure setting a Header in httpd.conf
am 11.03.2010 12:09:49 von Baljeet Nijjhar
--001636c5bc62130a33048184748f
Content-Type: text/plain; charset=ISO-8859-1
Hi
That works when distinguishing between html and images. However, I suspect
my problem is more subtle. If the page contains an attachment (content-type
= application/msword for example, rather than text/html) I need to set a
different cache-control header. So are FilesMatch and ExpiresByType looking
at the content-type header value and comparing, or something else?
Also, if I were to set my Header selectively in my application code for some
cases, can I set my gloabl type settings in httpd.conf to only set the
Header if it is not already present? That would help ..
thanks, Baljeet.
On Wed, Mar 10, 2010 at 3:33 PM, Philip Wigg wrote:
> On 10 March 2010 15:03, Baljeet Nijjhar wrote:
> >
> > Hi
> > I'd like to try and configure the following outcomes in my httpd.conf:
> > a) for static images, stylesheets, javascript, Cache-Control:max-age
> > 3600 and Expires: + 3600. This I can easily do by using the ExpiresByType
> > directive for these content types (text/css, application/x-javascript,
> > image/* etc)
> > b) for html, I want to set Cache-Control: no-cache, no-store (and
> probably
> > Pragma to no-cache or Expires to -1 to prevent HTTP 1.0 from caching).
> I'd
> > rather not use max-age=0 because that will download my pages to the
> user's
> > browser.
> > I can't see how to do b) i.e. define a different Header based on the
> > content-type which seems to be text/html. I've tried enclosing my Header
> set
> > command within a directive, but this doesn't
> > seem to match my HTML.
> > Has anyone got any ideas please? Do I need to add a Directory of where my
> > application is? (I'm using a proxy server and my application server is on
> > another machine, so I don't know how easily I can do this, if needed).
>
> One way might be to use the Header directive to set 'Cache-Control:
> no-cache' as the default and then override it for selected file types
> that you do want to cache? Something like:-
>
> Header set Cache-Control "no-cache"
>
>
> Header set Cache-Control "max-age=3600"
>
>
> -- Phil
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
--001636c5bc62130a33048184748f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi
That works when distinguishing between html and images. However, I sus=
pect my problem is more subtle. If the page contains an attachment (content=
-type =3D application/msword for example, rather than text/html) I need to =
set a different cache-control header. So are FilesMatch and ExpiresByType l=
ooking at the content-type header value and comparing, or something else?=
div>
Also, if I were to set my Header selectively in my application code fo=
r some cases, can I set my gloabl type settings in httpd.conf to only set t=
he Header if it is not already present? That would help ..
thanks, Baljeet.
On Wed, Mar 10, 2010 at 3:33 PM, Philip Wigg
an dir=3D"ltr"><
phil@philipwigg=
..co.uk> wrote:
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
On 10 March 2010 15:03, Baljeet Nijjhar <
ilto:Baljeet.Nijjhar@gmail.com">Baljeet.Nijjhar@gmail.com> wrote:
>>
> Hi
> I'd like to try and configure the following ou=
tcomes in my httpd.conf:
> a) for static images, stylesheets, javascript, Cache-Control:max-age
r>> 3600 and Expires: + 3600. This I can easily do by using the ExpiresB=
yType
> directive for these content types (text/css, application/x-ja=
vascript,
> image/* etc)
> b) for html, I want to set Cache-Control: no-cach=
e, no-store (and probably
> Pragma to no-cache or Expires to -1 to pr=
event HTTP 1.0 from caching). I'd
> rather not use max-age=3D0 be=
cause that will download my pages to the user's
> browser.
> I can't see how to do b) i.e. define a different =
Header based on the
> content-type which seems to be text/html. I'=
;ve tried enclosing my Header set
> command within a <FilesMatch &=
quot;\.(htm|html)$"> directive, but this doesn't
> seem to match my HTML.
> Has anyone got any ideas please? Do I n=
eed to add a Directory of where my
> application is? (I'm using a=
proxy server and my application server is on
> another machine, so I=
don't know how easily I can do this, if needed).
One way might be to use the Header directive to set 'Cache-Co=
ntrol:
no-cache' as the default and then override it for selected fi=
le types
that you do want to cache? Something like:-
Header set C=
ache-Control "no-cache"
<FilesMatch "\.(gif|jpg|jpeg|png|js|css|swf)$">
=A0 =
=A0Header set Cache-Control "max-age=3D3600"
</FilesMatch&g=
t;
-- Phil
-----------------------------------------------------=
----------------
The official User-To-User support forum of the Apache H=
TTP Server Project.
See <URL:
list.html" target=3D"_blank">http://httpd.apache.org/userslist.html>=
for more info.
To unsubscribe, e-mail:
g">users-unsubscribe@httpd.apache.org
=A0 " =A0 from the digest=
:
users-digest=
-unsubscribe@httpd.apache.org
For additional commands, e-mail:
org">users-help@httpd.apache.org
=
--001636c5bc62130a33048184748f--
Re: How can I configure setting a Header in httpd.conf
am 11.03.2010 12:11:49 von Baljeet Nijjhar
--001485e8e7392f74050481847bba
Content-Type: text/plain; charset=ISO-8859-1
i.e. if I do ExpiresByType application/msword "access plus 5 seconds" it
doesn't actually work. Nor does
On Thu, Mar 11, 2010 at 11:09 AM, Baljeet Nijjhar <
baljeet.nijjhar@googlemail.com> wrote:
> Hi
> That works when distinguishing between html and images. However, I suspect
> my problem is more subtle. If the page contains an attachment (content-type
> = application/msword for example, rather than text/html) I need to set a
> different cache-control header. So are FilesMatch and ExpiresByType looking
> at the content-type header value and comparing, or something else?
> Also, if I were to set my Header selectively in my application code for
> some cases, can I set my gloabl type settings in httpd.conf to only set the
> Header if it is not already present? That would help ..
> thanks, Baljeet.
>
> On Wed, Mar 10, 2010 at 3:33 PM, Philip Wigg wrote:
>
>> On 10 March 2010 15:03, Baljeet Nijjhar
>> wrote:
>> >
>> > Hi
>> > I'd like to try and configure the following outcomes in my httpd.conf:
>> > a) for static images, stylesheets, javascript, Cache-Control:max-age
>> > 3600 and Expires: + 3600. This I can easily do by using the
>> ExpiresByType
>> > directive for these content types (text/css, application/x-javascript,
>> > image/* etc)
>> > b) for html, I want to set Cache-Control: no-cache, no-store (and
>> probably
>> > Pragma to no-cache or Expires to -1 to prevent HTTP 1.0 from caching).
>> I'd
>> > rather not use max-age=0 because that will download my pages to the
>> user's
>> > browser.
>> > I can't see how to do b) i.e. define a different Header based on the
>> > content-type which seems to be text/html. I've tried enclosing my Header
>> set
>> > command within a directive, but this
>> doesn't
>> > seem to match my HTML.
>> > Has anyone got any ideas please? Do I need to add a Directory of where
>> my
>> > application is? (I'm using a proxy server and my application server is
>> on
>> > another machine, so I don't know how easily I can do this, if needed).
>>
>> One way might be to use the Header directive to set 'Cache-Control:
>> no-cache' as the default and then override it for selected file types
>> that you do want to cache? Something like:-
>>
>> Header set Cache-Control "no-cache"
>>
>>
>> Header set Cache-Control "max-age=3600"
>>
>>
>> -- Phil
>>
>> ------------------------------------------------------------ ---------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
--001485e8e7392f74050481847bba
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
i.e. if I do ExpiresByType application/msword "access plus 5 seco=
nds" it doesn't actually work. Nor does
<FilesMatch "\.(doc|pdf)$">
=A0
On Thu, Mar 11, 2010 at 11:09 AM, Baljeet Nijjha=
r
<b=
aljeet.nijjhar@googlemail.com> wrote:
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
Hi
That works when distinguishing between html and images. However, I sus=
pect my problem is more subtle. If the page contains an attachment (content=
-type =3D application/msword for example, rather than text/html) I need to =
set a different cache-control header. So are FilesMatch and ExpiresByType l=
ooking at the content-type header value and comparing, or something else?=
div>
Also, if I were to set my Header selectively in my application code fo=
r some cases, can I set my gloabl type settings in httpd.conf to only set t=
he Header if it is not already present? That would help ..
thanks, Baljeet.
On Wed, Mar 10, 2010 at 3:33 PM, Philip Wigg
an dir=3D"ltr"><
k">phil@philipwigg.co.uk> wrote:
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
On 10 March 2010 15:03, Baljeet Nijjhar <
Nijjhar@gmail.com" target=3D"_blank">Baljeet.Nijjhar@gmail.com> wrot=
e:
>
> Hi
> I'd like to try and configure the followi=
ng outcomes in my httpd.conf:
> a) for static images, stylesheets, javascript, Cache-Control:max-age
r>> 3600 and Expires: + 3600. This I can easily do by using the ExpiresB=
yType
> directive for these content types (text/css, application/x-ja=
vascript,
> image/* etc)
> b) for html, I want to set Cache-Control: no-cach=
e, no-store (and probably
> Pragma to no-cache or Expires to -1 to pr=
event HTTP 1.0 from caching). I'd
> rather not use max-age=3D0 be=
cause that will download my pages to the user's
> browser.
> I can't see how to do b) i.e. define a different =
Header based on the
> content-type which seems to be text/html. I'=
;ve tried enclosing my Header set
> command within a <FilesMatch &=
quot;\.(htm|html)$"> directive, but this doesn't
> seem to match my HTML.
> Has anyone got any ideas please? Do I n=
eed to add a Directory of where my
> application is? (I'm using a=
proxy server and my application server is on
> another machine, so I=
don't know how easily I can do this, if needed).
One way might be to use the Header directive to set 'Cache-Co=
ntrol:
no-cache' as the default and then override it for selected fi=
le types
that you do want to cache? Something like:-
Header set C=
ache-Control "no-cache"
<FilesMatch "\.(gif|jpg|jpeg|png|js|css|swf)$">
=A0 =
=A0Header set Cache-Control "max-age=3D3600"
</FilesMatch&g=
t;
-- Phil
------------------------------------------------------------ ------=
---
The official User-To-User support forum of the Apache HTTP Server Pr=
oject.
See <URL:
rget=3D"_blank">http://httpd.apache.org/userslist.html> for more inf=
o.
To unsubscribe, e-mail:
g" target=3D"_blank">users-unsubscribe@httpd.apache.org
=A0 " =
=A0 from the digest:
e.org" target=3D"_blank">users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail:
org" target=3D"_blank">users-help@httpd.apache.org
<=
/blockquote>
--001485e8e7392f74050481847bba--
Re: How can I configure setting a Header in httpd.conf
am 11.03.2010 12:51:31 von Baljeet Nijjhar
--00c09fc2bdbe27b316048185094e
Content-Type: text/plain; charset=ISO-8859-1
In fact, FilesMatch doesnt seem to work for anything (inlcuding the string
you sent for images etc). I'm using my HTTP server as a proxy server. I
wonder if I need to do something with Directory as well ...
Right now, I'm feeling like the only solution is to set them up in my
application code using a filter. Is this recommended, or must it done at the
proxy server level?
On Thu, Mar 11, 2010 at 11:11 AM, Baljeet Nijjhar <
baljeet.nijjhar@googlemail.com> wrote:
> i.e. if I do ExpiresByType application/msword "access plus 5 seconds" it
> doesn't actually work. Nor does
>
>
>
>
> On Thu, Mar 11, 2010 at 11:09 AM, Baljeet Nijjhar <
> baljeet.nijjhar@googlemail.com> wrote:
>
>> Hi
>> That works when distinguishing between html and images. However, I suspect
>> my problem is more subtle. If the page contains an attachment (content-type
>> = application/msword for example, rather than text/html) I need to set a
>> different cache-control header. So are FilesMatch and ExpiresByType looking
>> at the content-type header value and comparing, or something else?
>> Also, if I were to set my Header selectively in my application code for
>> some cases, can I set my gloabl type settings in httpd.conf to only set the
>> Header if it is not already present? That would help ..
>> thanks, Baljeet.
>>
>> On Wed, Mar 10, 2010 at 3:33 PM, Philip Wigg wrote:
>>
>>> On 10 March 2010 15:03, Baljeet Nijjhar
>>> wrote:
>>> >
>>> > Hi
>>> > I'd like to try and configure the following outcomes in my httpd.conf:
>>> > a) for static images, stylesheets, javascript, Cache-Control:max-age
>>> > 3600 and Expires: + 3600. This I can easily do by using the
>>> ExpiresByType
>>> > directive for these content types (text/css, application/x-javascript,
>>> > image/* etc)
>>> > b) for html, I want to set Cache-Control: no-cache, no-store (and
>>> probably
>>> > Pragma to no-cache or Expires to -1 to prevent HTTP 1.0 from caching).
>>> I'd
>>> > rather not use max-age=0 because that will download my pages to the
>>> user's
>>> > browser.
>>> > I can't see how to do b) i.e. define a different Header based on the
>>> > content-type which seems to be text/html. I've tried enclosing my
>>> Header set
>>> > command within a directive, but this
>>> doesn't
>>> > seem to match my HTML.
>>> > Has anyone got any ideas please? Do I need to add a Directory of where
>>> my
>>> > application is? (I'm using a proxy server and my application server is
>>> on
>>> > another machine, so I don't know how easily I can do this, if needed).
>>>
>>> One way might be to use the Header directive to set 'Cache-Control:
>>> no-cache' as the default and then override it for selected file types
>>> that you do want to cache? Something like:-
>>>
>>> Header set Cache-Control "no-cache"
>>>
>>>
>>> Header set Cache-Control "max-age=3600"
>>>
>>>
>>> -- Phil
>>>
>>> ------------------------------------------------------------ ---------
>>> The official User-To-User support forum of the Apache HTTP Server
>>> Project.
>>> See for more info.
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>>
>>
>
--00c09fc2bdbe27b316048185094e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
In fact, FilesMatch doesnt seem to work for anything (inlcuding the st=
ring you sent for images etc). I'm using my HTTP server as a proxy serv=
er. I wonder if I need to do something with Directory as well ...
Right now, I'm feeling like the only solution is to set them up in=
my application code using a filter. Is this recommended, or must it done a=
t the proxy server level?
On Thu, Mar 11, 2010 at 11:11 AM, Baljeet Nijjha=
r
<b=
aljeet.nijjhar@googlemail.com> wrote:
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
i.e. if I do ExpiresByType application/msword "access plus 5 seco=
nds" it doesn't actually work. Nor does
<FilesMatch "\.(doc|pdf)$">
=A0
On Thu, Mar 11, 2010 at 11:09 AM, Baljeet Nijjha=
r
<
arget=3D"_blank">baljeet.nijjhar@googlemail.com> wrote:
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
Hi
That works when distinguishing between html and images. However, I sus=
pect my problem is more subtle. If the page contains an attachment (content=
-type =3D application/msword for example, rather than text/html) I need to =
set a different cache-control header. So are FilesMatch and ExpiresByType l=
ooking at the content-type header value and comparing, or something else?=
div>
Also, if I were to set my Header selectively in my application code fo=
r some cases, can I set my gloabl type settings in httpd.conf to only set t=
he Header if it is not already present? That would help ..
thanks, Baljeet.
On Wed, Mar 10, 2010 at 3:33 PM, Philip Wigg
an dir=3D"ltr"><
k">phil@philipwigg.co.uk> wrote:
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
On 10 March 2010 15:03, Baljeet Nijjhar <
Nijjhar@gmail.com" target=3D"_blank">Baljeet.Nijjhar@gmail.com> wrot=
e:
>
> Hi
> I'd like to try and configure the followi=
ng outcomes in my httpd.conf:
> a) for static images, stylesheets, javascript, Cache-Control:max-age
r>> 3600 and Expires: + 3600. This I can easily do by using the ExpiresB=
yType
> directive for these content types (text/css, application/x-ja=
vascript,
> image/* etc)
> b) for html, I want to set Cache-Control: no-cach=
e, no-store (and probably
> Pragma to no-cache or Expires to -1 to pr=
event HTTP 1.0 from caching). I'd
> rather not use max-age=3D0 be=
cause that will download my pages to the user's
> browser.
> I can't see how to do b) i.e. define a different =
Header based on the
> content-type which seems to be text/html. I'=
;ve tried enclosing my Header set
> command within a <FilesMatch &=
quot;\.(htm|html)$"> directive, but this doesn't
> seem to match my HTML.
> Has anyone got any ideas please? Do I n=
eed to add a Directory of where my
> application is? (I'm using a=
proxy server and my application server is on
> another machine, so I=
don't know how easily I can do this, if needed).
One way might be to use the Header directive to set 'Cache-Co=
ntrol:
no-cache' as the default and then override it for selected fi=
le types
that you do want to cache? Something like:-
Header set C=
ache-Control "no-cache"
<FilesMatch "\.(gif|jpg|jpeg|png|js|css|swf)$">
=A0 =
=A0Header set Cache-Control "max-age=3D3600"
</FilesMatch&g=
t;
-- Phil
------------------------------------------------------------ ------=
---
The official User-To-User support forum of the Apache HTTP Server Pr=
oject.
See <URL:
rget=3D"_blank">http://httpd.apache.org/userslist.html> for more inf=
o.
To unsubscribe, e-mail:
g" target=3D"_blank">users-unsubscribe@httpd.apache.org
=A0 " =
=A0 from the digest:
e.org" target=3D"_blank">users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail:
org" target=3D"_blank">users-help@httpd.apache.org
<=
/blockquote>
kquote>
--00c09fc2bdbe27b316048185094e--
Re: How can I configure setting a Header in httpd.conf
am 11.03.2010 13:03:30 von Tom Evans
On Thu, Mar 11, 2010 at 11:51 AM, Baljeet Nijjhar
wrote:
> In fact, FilesMatch doesnt seem to work for anything (inlcuding the string
> you sent for images etc). I'm using my HTTP server as a proxy server. I
> wonder if I need to do something with Directory as well ...
> Right now, I'm feeling like the only solution is to set them up in my
> application code using a filter. Is this recommended, or must it done at the
> proxy server level?
>
FilesMatch matches files - real files, existing on disk. If your
handler doesn't refer to files on local disk, eg proxying, then it
will never match a Files or FilesMatch section.
The equivalent solution is to use LocationMatch. See
http://httpd.apache.org/docs/2.2/sections.html#filesystem for details
on the differences between the two,
Cheers
Tom
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: How can I configure setting a Header in httpd.conf
am 11.03.2010 13:07:50 von Baljeet Nijjhar
--00504502d73689a14c0481854361
Content-Type: text/plain; charset=ISO-8859-1
Ah thanks, that would explain it as yes, it's a proxy.
On Thu, Mar 11, 2010 at 12:03 PM, Tom Evans wrote:
> On Thu, Mar 11, 2010 at 11:51 AM, Baljeet Nijjhar
> wrote:
> > In fact, FilesMatch doesnt seem to work for anything (inlcuding the
> string
> > you sent for images etc). I'm using my HTTP server as a proxy server. I
> > wonder if I need to do something with Directory as well ...
> > Right now, I'm feeling like the only solution is to set them up in my
> > application code using a filter. Is this recommended, or must it done at
> the
> > proxy server level?
> >
>
> FilesMatch matches files - real files, existing on disk. If your
> handler doesn't refer to files on local disk, eg proxying, then it
> will never match a Files or FilesMatch section.
>
> The equivalent solution is to use LocationMatch. See
> http://httpd.apache.org/docs/2.2/sections.html#filesystem for details
> on the differences between the two,
>
> Cheers
>
> Tom
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
--00504502d73689a14c0481854361
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Ah thanks, that would explain it as yes, it's a proxy.
On Thu, Mar 11, 2010 at 12:03 PM, Tom Evans
n dir=3D"ltr"><@
p://googlemail.com">googlemail.com> wrote:
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Thu, Mar 11, 2010 at 11:51 AM=
, Baljeet Nijjhar
> In fact, FilesMatch doesnt seem to work for anything=
(inlcuding the string
> you sent for images etc). I'm using my H=
TTP server as a proxy server. I
> wonder if I need to do something wi=
th Directory as well ...
> Right now, I'm feeling like the only solution is to set them up in=
my
> application code using a filter. Is this recommended, or must i=
t done at the
> proxy server level?
>
FilesMatch m=
atches files - real files, existing on disk. If your
handler doesn't refer to files on local disk, eg proxying, then it
w=
ill never match a Files or FilesMatch section.
The equivalent soluti=
on is to use LocationMatch. See
2.2/sections.html#filesystem" target=3D"_blank">http://httpd.apache.org/doc=
s/2.2/sections.html#filesystem for details
on the differences between the two,
Cheers
">
Tom
-----------------------------------------------------=
----------------
The official User-To-User support forum of the Apache H=
TTP Server Project.
See <URL:
list.html" target=3D"_blank">http://httpd.apache.org/userslist.html>=
for more info.
To unsubscribe, e-mail:
g">users-unsubscribe@httpd.apache.org
=A0 " =A0 from the digest=
:
users-digest=
-unsubscribe@httpd.apache.org
For additional commands, e-mail:
org">users-help@httpd.apache.org
=
--00504502d73689a14c0481854361--
Re: How can I configure setting a Header in httpd.conf
am 11.03.2010 15:00:31 von Baljeet Nijjhar
--00504502d73681163a048186d6a0
Content-Type: text/plain; charset=ISO-8859-1
Can I ask, would I have any luck using LocationMatch to distinguish those
requests which were for file attachment downloads, except by adding some
parameter into the URL or having those pages served from a particular named
path that I then search for? I am assuming I could distinguish images,
javascript etc through the URL as the URL would end in .gif, .js etc.
On Thu, Mar 11, 2010 at 12:07 PM, Baljeet Nijjhar <
baljeet.nijjhar@googlemail.com> wrote:
> Ah thanks, that would explain it as yes, it's a proxy.
>
>
> On Thu, Mar 11, 2010 at 12:03 PM, Tom Evans wrote:
>
>> On Thu, Mar 11, 2010 at 11:51 AM, Baljeet Nijjhar
>> wrote:
>> > In fact, FilesMatch doesnt seem to work for anything (inlcuding the
>> string
>> > you sent for images etc). I'm using my HTTP server as a proxy server. I
>> > wonder if I need to do something with Directory as well ...
>> > Right now, I'm feeling like the only solution is to set them up in my
>> > application code using a filter. Is this recommended, or must it done at
>> the
>> > proxy server level?
>> >
>>
>> FilesMatch matches files - real files, existing on disk. If your
>> handler doesn't refer to files on local disk, eg proxying, then it
>> will never match a Files or FilesMatch section.
>>
>> The equivalent solution is to use LocationMatch. See
>> http://httpd.apache.org/docs/2.2/sections.html#filesystem for details
>> on the differences between the two,
>>
>> Cheers
>>
>> Tom
>>
>> ------------------------------------------------------------ ---------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
--00504502d73681163a048186d6a0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Can I ask, would I have any luck using LocationMatch to distinguish those r=
equests which were for file attachment downloads, except by adding some par=
ameter into the URL or having those pages served from a particular named pa=
th that I then search for? I am assuming I could distinguish images, javasc=
ript etc through the URL as the URL would end in .gif, .js etc.
On Thu, Mar 11, 2010 at 12:07 PM, Baljeet Nijjha=
r
<b=
aljeet.nijjhar@googlemail.com> wrote:
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Ah thanks, that would explain it=
as yes, it's a proxy.=20
On Thu, Mar 11, 2010 at 12:03 PM, Tom Evans
n dir=3D"ltr"><
tevans.uk=
@
googlemail.com
>> wrote:
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Thu, Mar 11, 2010 at 11:51 AM=
, Baljeet Nijjhar
<
">baljeet.nijjhar@googlemail.com> wrote:
> In fact, FilesMatch doesnt seem to work for anything (inlcuding t=
he string
> you sent for images etc). I'm using my HTTP server as=
a proxy server. I
> wonder if I need to do something with Directory =
as well ...
> Right now, I'm feeling like the only solution is to set them up in=
my
> application code using a filter. Is this recommended, or must i=
t done at the
> proxy server level?
>
FilesMatch m=
atches files - real files, existing on disk. If your
handler doesn't refer to files on local disk, eg proxying, then it
w=
ill never match a Files or FilesMatch section.
The equivalent soluti=
on is to use LocationMatch. See
2.2/sections.html#filesystem" target=3D"_blank">http://httpd.apache.org/doc=
s/2.2/sections.html#filesystem for details
on the differences between the two,
Cheers
">
Tom
------------------------------------------------------------ ------=
---
The official User-To-User support forum of the Apache HTTP Server Pr=
oject.
See <URL:
rget=3D"_blank">http://httpd.apache.org/userslist.html> for more inf=
o.
To unsubscribe, e-mail:
g" target=3D"_blank">users-unsubscribe@httpd.apache.org
=A0 " =
=A0 from the digest:
e.org" target=3D"_blank">users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail:
org" target=3D"_blank">users-help@httpd.apache.org
<=
/blockquote>
--00504502d73681163a048186d6a0--